package com.zsx.shopping.user.enums;

import lombok.Getter;

public enum UserCodeMsg {

    USERNAME_EXIST(4001, "用户名已存在"),

    USERNAME_PASSWORD_WRONG(4002, "用户名或密码错误");

    @Getter
    private Integer code;

    @Getter
    private String msg;

    UserCodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "CodeMsg{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
